<aside class="main-sidebar">

    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">

        <!-- Sidebar user panel (optional) -->
        {{--<div class="user-panel">--}}
            {{--<div class="pull-left image">--}}
                {{--<img src="/imgs/avatar/u1.jpg" class="img-circle" alt="User Image">--}}
            {{--</div>--}}
            {{--<div class="pull-left info">--}}
                {{--<p>{{session('admin_info')->name}}</p>--}}
                {{--<!-- Status -->--}}
                {{--<a><i class="fa fa-circle text-success"></i> 在线</a>--}}
            {{--</div>--}}
        {{--</div>--}}

        <!-- search form (Optional) -->
        {{--<form action="#" method="get" class="sidebar-form">--}}
            {{--<div class="input-group">--}}
                {{--<input type="text" name="q" class="form-control" placeholder="搜索...">--}}
                {{--<span class="input-group-btn">--}}
                {{--<button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>--}}
                {{--</button>--}}
              {{--</span>--}}
            {{--</div>--}}
        {{--</form>--}}
        <!-- /.search form -->

        <!-- Sidebar Menu -->
        <ul class="sidebar-menu">
            <li class="header">栏目导航</li>
            <!-- Optionally, you can add icons to the links -->

            <li class="active"><a href="/admin"><i class="fa fa-dashboard"></i> <span>控制面板</span></a></li>
            @foreach( config('menu.nav') as $item)
                @if($item['display'])
                    <li class="treeview @if( isset($fatherKey) && $fatherKey == $item['f-key']) active @endif">
                        <a href="#"><i class="fa {{$item['fa']}}"></i> <span>{{ $item['title'] }}</span> <i
                                    class="fa fa-angle-left pull-right"></i></a>
                        <ul class="treeview-menu">
                            @foreach($item['child'] as $child)
                                <li @if( isset($childKey) && $childKey == $child['c-key']) class="active" @endif><a href="{{ url($child['url']) }}">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-circle-o"></i>{{ $child['title'] }}</a></li>
                            @endforeach
                        </ul>
                    </li>
                @endif
            @endforeach

        </ul>
        <!-- /.sidebar-menu -->
    </section>
    <!-- /.sidebar -->
</aside>